package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_thanks")
public class Thanks extends Model<Thanks> {
    public Thanks() {}
    public Thanks(Integer id) {
        this.id = id;
    }
    @TableId
    private Integer id;

    private String nickName;

    private String username;

    private BigDecimal money;

    private String info;

    private Date date;

    private String email;

    private Integer state;

    private String payType;

    private String orderId;

    @TableField(exist = false)
    private String time;
    @TableField(exist = false)
    private String userId;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}